home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2000 July / CD 3 / redhat-6.2.iso / RedHat / instimage / usr / lib / anaconda / iw / confirm.py < prev    next >
Encoding:
Python Source  |  2000-03-08  |  1.4 KB  |  52 lines

  1. from gtk import *
  2. from iw import *
  3. from translate import _
  4.  
  5. class ConfirmWindow (InstallWindow):
  6.  
  7.     def __init__ (self, ics):
  8.     InstallWindow.__init__ (self, ics)
  9.         ics.setNextEnabled (1)
  10.         ics.setPrevEnabled (1)
  11.         ics.setTitle (_("About to Install"))
  12. #        ics.setHelpEnabled (FALSE)
  13.         ics.readHTML ("aboutinstall")
  14.  
  15.     def getScreen (self):
  16.         hbox = GtkHBox (TRUE, 5)
  17.         box = GtkVBox (FALSE, 5)
  18.  
  19.         im = self.ics.readPixmap ("about-to-install.png")
  20.         if im:
  21.             im.render ()
  22.             pix = im.make_pixmap ()
  23.             a = GtkAlignment ()
  24.             a.add (pix)
  25.             a.set (0.5, 0.5, 1.0, 1.0)
  26.             hbox.pack_start (a, FALSE)
  27.         
  28.         label = GtkLabel (_("Click next to begin installation of Red Hat Linux."))
  29.         label.set_line_wrap (TRUE)
  30.         label.set_usize(190, -1)
  31.  
  32.         
  33.         label2 = GtkLabel (_("A complete log of your installation will be in "
  34.                               "/tmp/install.log after rebooting your system. You "
  35.                               "may want to keep this file for later reference."))
  36.  
  37.         label2.set_line_wrap (TRUE)
  38.         label2.set_usize(190, -1)
  39.         
  40.         box.pack_start (label, FALSE)
  41.         box.pack_start (label2, FALSE)
  42.         box.set_border_width (5)
  43.  
  44.         a = GtkAlignment ()
  45.         a.add (box)
  46.         a.set (0.5, 0.5, 0.0, 0.0)        
  47.  
  48.         hbox.pack_start (a)
  49.         return hbox
  50.     
  51.         
  52.